package config

type RedisConfig struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Password string `yaml:"password"`
	DB       int    `yaml:"db"`
}

// LoadRedisConfig 从全局配置中加载Redis配置
func LoadRedisConfig() *RedisConfig {
	return &AppConfig.Redis
}